<?php
/**
 * Enter description here ...
 * @author NgoAnhTu
 * @date 2013-11-07
 * @table(news)
 */
final class News extends Entity {
		
	/**
	 * @column(Title)
	 * @type(string)
	 */
	public $title;
	
	/**
	 * @column(Header)
	 * @type(string)
	 */
	public $header;
	
	/**
	 * @column(Body)
	 * @type(string)
	 */
	public $body;
	
	/**
	 * @column(Author)
	 * @type(string)
	 */
	public $author;
		
	/**
	 * @column(Active)
	 * @type(number)
	 */
	public $active;
	
	/**
	 * @column(CreateDate)
	 * @type(date)
	 */
	public $createDate;

	/**
	 * @column(Category)
	 * @type(number)
	 */
	public $category;
	
	/**
	 * Constructor
	 * @param integer $id
	 * @param string $title
	 * @param string $header
	 * @param string $body
	 * @param string $author
	 * @param integer $active
	 * @param datetime $createDate
	 * @param integer $category
	 */
	public function News($id = 0, $title = '', $header = '', $body = '', $author = '', $active = 0, $createDate = '', $category = 0) {
		$this->id = $id;
		$this->title = $title;
		$this->header = $header;
		$this->body = $body;
		$this->author = $author;
		$this->active = $active;
		$this->createDate = $createDate;
		$this->category = $category;
	}
	
}
?>